package cc.admin.modules.message.handle;

import cc.admin.common.util.DySmsEnum;
import cc.admin.modules.sys.entity.SysUser;
import com.alibaba.fastjson.JSONObject;

import java.util.Map;

public interface ISendMsg {

    //发送短信接口
    void sendSms(String phones, JSONObject param, DySmsEnum dySmsEnum);

    //发送消息
    void sendMessage(String phones, String es_title, String es_contents, String moduleName, String busName);


    /**
     * 发通知与消息
     * Send *
     *
     * @param title   title
     * @param user    user
     * @param mobj    mobj
     * @param message message
     * @param code    code
     */
    void send(String title, SysUser user, JSONObject mobj, String message, DySmsEnum code, Map<String,Object> map);

	//定时任务发送消息
	void timedSendMessage(String phones, String es_title, String es_contents, String moduleName, String busName);

}
